@model OurWedding1.Models.Contractor

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Contractor</legend>

    <div class="display-label">Name</div>
    <div class="display-field">@Model.Name</div>

    <div class="display-label">Adress</div>
    <div class="display-field">@Model.Adress</div>

    <div class="display-label">City</div>
    <div class="display-field">@Model.City</div>

    <div class="display-label">PostCode</div>
    <div class="display-field">@Model.PostCode</div>

    <div class="display-label">Phone</div>
    <div class="display-field">@Model.Phone</div>

    <div class="display-label">Email</div>
    <div class="display-field">@Model.Email</div>

    <div class="display-label">Expenses</div>
    <div class="display-field">@(Model.Expenses == null ? "None" : Model.Expenses.Count.ToString())</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ContractorId }) |
    @Html.ActionLink("Back to List", "Index")
</p>


